package com.xhkj.hk;

import java.util.Arrays;
import java.util.List;

import com.hikvision.artemis.sdk.kafka.config.StartConfig;
import com.hikvision.artemis.sdk.kafka.entity.enums.TopicValueEnum;
import com.hikvision.artemis.sdk.kafka.starter.FaceKafkaStarter;

/**
 * 人脸数据启动服务
 */
public class FaceStart {

    public void start() {
        StartConfig config = new StartConfig();
        config.setArtemisIp("20.204.11.10");
        config.setArtemisPort(443);
        config.setAppKey("28252144");   
        config.setAppSecret("fccBE0mgrP59ZFpJxGBw");
//        List<TopicValueEnum> topics = Arrays.asList(TopicValueEnum.ORGIN_SNAP);
        List<TopicValueEnum> topics = Arrays.asList(TopicValueEnum.SNAP_INFO);
        config.setTopics(topics);
        config.setGroupId("test_face");
        config.setDomainId("0");
        config.setFaceExecute(new FaceExecuteHandle());
        FaceKafkaStarter.start(config);
    }
}